package com.yanfan.energy.domain;

/**
 * @author caijinkang
 * @date 2023年01月31日 10:30
 */
public class PlanBody {
    /**
     * 用户名称
     *
     * @author caijinkang
     * @date 2023/1/31 10:40
     * @param null
     * @return null
     */
    private String userName;
    /**
     * 岗位
     *
     * @author caijinkang
     * @date 2023/1/31 10:41
     * @param null
     * @return null
     */
    private String post;
    /**
     * 头像
     *
     * @author caijinkang
     * @date 2023/1/31 10:41
     * @param null
     * @return null
     */
    private String imgUrl;
    /**
     * 计划数量
     *
     * @author caijinkang
     * @date 2023/1/31 10:30
     * @param null
     * @return null
     */
    private Integer planNumber;
    /**
     * 完工数量
     *
     * @author caijinkang
     * @date 2023/1/31 10:31
     * @param null
     * @return null
     */
    private Integer complete;
    /**
     * 总达成率
     *
     * @author caijinkang
     * @date 2023/1/31 10:31
     * @param null
     * @return null
     */
    private Double achievement;
    /**
     * 总通过率
     *
     * @author caijinkang
     * @date 2023/1/31 10:32
     * @param null
     * @return null
     */
    private Double passing;
    /**
     * 本月达成率
     *
     * @author caijinkang
     * @date 2023/1/31 10:33
     * @param null
     * @return null
     */
    private Double achievementMonth;
    /**
     * 上月达成率
     *
     * @author caijinkang
     * @date 2023/1/31 10:34
     * @param null
     * @return null
     */
    private Double achievementLast;
    /**
     * 达成率平均值
     *
     * @author caijinkang
     * @date 2023/1/31 10:35
     * @param null
     * @return null
     */
    private Double achievementSvg;
    /**
     * 本月通过率
     *
     * @author caijinkang
     * @date 2023/1/31 10:35
     * @param null
     * @return null
     */
    private Double passingMonth;
    /**
     * 上月通过率
     *
     * @author caijinkang
     * @date 2023/1/31 10:36
     * @param null
     * @return null
     */
    private Double passingLast;
    /**
     * 通过率平均值
     *
     * @author caijinkang
     * @date 2023/1/31 10:36
     * @param null
     * @return null
     */
    private Double passingSvg;

    public PlanBody() {
    }

    public PlanBody(String userName, String post, String imgUrl, Integer planNumber, Integer complete, Double achievement, Double passing, Double achievementMonth, Double achievementLast, Double achievementSvg, Double passingMonth, Double passingLast, Double passingSvg) {
        this.userName = userName;
        this.post = post;
        this.imgUrl = imgUrl;
        this.planNumber = planNumber;
        this.complete = complete;
        this.achievement = achievement;
        this.passing = passing;
        this.achievementMonth = achievementMonth;
        this.achievementLast = achievementLast;
        this.achievementSvg = achievementSvg;
        this.passingMonth = passingMonth;
        this.passingLast = passingLast;
        this.passingSvg = passingSvg;
    }

    @Override
    public String toString() {
        return "PlanBody{" + "userName='" + userName + '\'' + ", post='" + post + '\'' + ", imgUrl='" + imgUrl + '\'' + ", planNumber=" + planNumber + ", complete=" + complete + ", achievement=" + achievement + ", passing=" + passing + ", achievementMonth=" + achievementMonth + ", achievementLast=" + achievementLast + ", achievementSvg=" + achievementSvg + ", passingMonth=" + passingMonth + ", passingLast=" + passingLast + ", passingSvg=" + passingSvg + '}';
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getPlanNumber() {
        return planNumber;
    }

    public void setPlanNumber(Integer planNumber) {
        this.planNumber = planNumber;
    }

    public Integer getComplete() {
        return complete;
    }

    public void setComplete(Integer complete) {
        this.complete = complete;
    }

    public Double getAchievement() {
        return achievement;
    }

    public void setAchievement(Double achievement) {
        this.achievement = achievement;
    }

    public Double getPassing() {
        return passing;
    }

    public void setPassing(Double passing) {
        this.passing = passing;
    }

    public Double getAchievementMonth() {
        return achievementMonth;
    }

    public void setAchievementMonth(Double achievementMonth) {
        this.achievementMonth = achievementMonth;
    }

    public Double getAchievementLast() {
        return achievementLast;
    }

    public void setAchievementLast(Double achievementLast) {
        this.achievementLast = achievementLast;
    }

    public Double getAchievementSvg() {
        return achievementSvg;
    }

    public void setAchievementSvg(Double achievementSvg) {
        this.achievementSvg = achievementSvg;
    }

    public Double getPassingMonth() {
        return passingMonth;
    }

    public void setPassingMonth(Double passingMonth) {
        this.passingMonth = passingMonth;
    }

    public Double getPassingLast() {
        return passingLast;
    }

    public void setPassingLast(Double passingLast) {
        this.passingLast = passingLast;
    }

    public Double getPassingSvg() {
        return passingSvg;
    }

    public void setPassingSvg(Double passingSvg) {
        this.passingSvg = passingSvg;
    }

    public void initData() {
        this.achievement = this.achievement == null ? 0.0 : this.achievement;
        this.passing = this.passing == null ? 0.0 : this.passing;
        this.achievementMonth = this.achievementMonth == null ? 0.0 : this.achievementMonth;
        this.achievementLast = this.achievementLast == null ? 0.0 : this.achievementLast;
        this.achievementSvg = this.achievementSvg == null ? 0.0 : this.achievementSvg;
        this.passingMonth = this.passingMonth == null ? 0.0 : this.passingMonth;
        this.passingLast = this.passingLast == null ? 0.0 : this.passingLast;
        this.passingSvg = this.passingSvg == null ? 0.0 : this.passingSvg;
        this.complete = this.complete == null ? 0 : this.complete;
    }
}
